package net.pessu.android.shoppoid.calendar;

import net.pessu.android.shoppoid.dao.Database;
import android.content.Context;

public class DateDesSoldesServices {

	private static DateDesSoldesServices instance;

	private Database db;

	public static DateDesSoldesServices getInstance(Context context) {
		if (instance == null) {
			instance = new DateDesSoldesServices(context);
		}
		return instance;
	}

	public DateDesSoldesServices(Context context) {
		db = new Database(context);
	}

	public String getDepartement() {
		return db.getInfo(ConstanteDateDesSoldes.CLE_DEP);
	}

	public void setDepartement(String dep) {
		db.addInfo(ConstanteDateDesSoldes.CLE_DEP, dep);
	}

	public void editDepartement(String dep) {
		db.editInfo(ConstanteDateDesSoldes.CLE_DEP, dep);
	}

}
